/*
package com.ship.dispatch.bpm.result;

import com.ship.dispatch.bpm.task.listener.BpmProcessInstanceResultEvent;
import com.ship.dispatch.bpm.task.listener.BpmProcessInstanceResultEventListener;
import com.ship.system.api.BpmInstanceService;
import com.ship.system.api.ConBpmResultService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ConProcessResultListener extends BpmProcessInstanceResultEventListener {

    @Resource
    ConBpmResultService conBpmResultService;
    @Override
    protected String getProcessDefinitionKey() {
        return BpmInstanceService.CON_RESOURCE_BOM_KEY;
    }

    @Override
    protected void onEvent(BpmProcessInstanceResultEvent event) {
        conBpmResultService.updateConResult(event.getBusinessKey(),event.getResult());
    }
}
*/
